{% extends "default.html" %}

{% load i18n %}

{% block title %}{% trans "Ask Question" %}{% endblock %}
{% block page_title %}{% trans "Ask Question" %}{% endblock %}


{% block page_content %}

<div class="box">
			
	<div class="top">
		<div class="left"></div>
		<div class="right"></div>
		<div class="center">{% trans "Ask Question" %}</div>
	</div>
	
	<div class="middle">

		{% if error|length > 0 %}
		<div style="color: red">{{ error }}</div>
		{% endif %}
		
		{% if form.errors %}
		<div>
			<ul>
			{% for field in form %}
			<li>{{ field.errors|striptags }}</li>
			{% endfor %}
			</ul>
		</div>
		{% endif %}
		
		<p>
		{% trans "Use this form to submit a question (and optionally a corresponding answer) that you would like to see added to the FAQs on this site." %}
		</p>
		
		<form action="/faq/submit_faq/" method="POST">
		{% for field in form %}
			<div class="form_field_wrapper">
				{% if field.errors %}
				<div class="form_field_error">{{ field.errors }}</div>
				{% endif %}
				<div class="form_field">
					<div class="form_field_label">
						<label>{{ field.label_tag }}:</label>
					</div>
					<div class="form_field_input">
						{{ field }}
					</div> 
					<br class="clear" />
				</div>
			</div>
		{% endfor %}
			{% include "security/recaptcha.html" %}
			<br class="clear"/>
			<div class="form_buttons">
				<input type="submit" value='{% trans "Save" %}' class="form_button" />
			</div>
		</form>
		
		</div>
	
	<div class="bottom">
		<div class="left"></div><div class="right"></div><div class="center"></div>
	</div>
</div>

{% endblock %}
